using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LogisticsAndong.Entity;
using LogisticsAndong.Model;
using LogisticsAndong.Service;
using Leeder.Business;

namespace LogisticsAndong.Business
{
    /// <summary>
    /// 
    /// </summary>
   public class OpcConnectBLL : BaseBLL<OpcConnectModel, OpcConnectService>
   {
        public OpcConnectBLL()
        {
            Service = new OpcConnectService();
        }

        public OpcConnectModel GetModel()
        {
            return Service.Query(p => (!p.IsPhantom || p.IsPhantom == null)).ActivedObj.FirstOrDefault();
        }

        public List<OpcConnectModel> GetModelList()
        {
            return Service.Query(p => (!p.IsPhantom || p.IsPhantom == null)).ActivedObj;
        }

    }
}
